EMT Practice Test

1. Question Content...


Question List

Question1: What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

Question2: SIMULATION
What word will complete an if statement in bash such as the following: if [ -x "$file" ]; then echo $file
_____
(Please provide the missing word only)

Question3: What is true about UIDs and GIDs?

Question4: Which of the following statements is valid in the file /etc/nsswitch.conf?

Question5: After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?

Question6: Which of the following commands pauses the CUPS printer LaserPrinter?

Question7: SIMULATION
In which file, if present, must all users be listed that are allowed to use the cron scheduling system?
(Specify the full name of the file, including path.)

Question8: What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?

Question9: SIMULATION
Which command, available with all MTAs, is used to list the contents of the MTA's mail queue? (Specify ONLY the command without any path or parameters.)

Question10: SIMULATION
What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)

Question11: When issuing the command ifconfig eth0 192.168.1.20/24 up, which of the following happens? (Choose TWO correct answers.)

Question12: Which of the following configuration files should be modified to globally set shell variables for all users?

Question13: Which of the following commands can modify or set the password expiration for a user? (Choose TWO correct answers.)

Question14: Which of the following statements is true regarding the /etc/shadow file?

Question15: Which of the following SQL statements will select the fields name and address from the contacts table?

Question16: Which of the following is true regarding the mail queue of a mail server? (Choose TWO correct answers.)

Question17: On a regular users workstation the route command takes a long time before printing out the routing table.
Which of the following errors does that indicate?

Question18: Which of the following commands will convert files from one character encoding to another?

Question19: Which of the following commands is used to rotate, compress, and mail system logs?

Question20: SIMULATION
Which port is the default server port for the HTTPS protocol? (Specify the port number using digits.)

Question21: SIMULATION
In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service?

Question22: Which configuration file would be edited to change default options for the OpenSSH server?

Question23: SIMULATION
Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)

Question24: SIMULATION
What word is missing from the following SQL statement?
__________ count(*) from tablename;
(Please specify the missing word using lower-case letters only.)

Question25: What of the following statements is true regarding a display manager?

Question26: Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose THREE correct answers.)

Question27: Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?

Question28: Which of the following is a correct entry in the /etc/hosts file?

Question29: Which of the following statements is valid in the file /etc/resolv.conf?

Question30: Why should an NTP client maintain connections to several NTP servers?

Question31: Why should a regular user edit his personal crontab by using the command crontab instead of just editing his crontab file manually?

Question32: Given the following routing table
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.178.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0
Why does the command route add default gw 192.168.1.1 fail?

Question33: For accessibility assistance, which of the following programs is an on-screen keyboard?

Question34: Which of the following details can be found in an entry of a user specific crontab? (Choose TWO correct answers.)

Question35: What output will the following command sequence produce?
echo '1 2 3 4 5 6' | while read a b c; do echo result: $c $b $a; done

Question36: SIMULATION
How many IP-addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28? (Specify the number only without any additional information.)

Question37: What is true regarding the file ~/.forward?

Question38: SIMULATION
What is the assigned port number for the HTTP service? (Specify the port number using digits.)

Question39: Which of the following commands lists all queued print jobs?

Question40: How do shadow passwords improve the password security in comparison to standard passwd passwords?

Question41: Which file, when using Sendmail or a compatible MTA system, will allow a user to redirect all of their mail to another address and is configurable by the user themselves?

Question42: Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

Question43: SIMULATION
What argument to the -type option of find will match files that are symbolic links? (Specify only the argument and no other options or words.)

Question44: Which environment variable will override all LC_* variables?

Question45: To prevent a specific user from scheduling tasks with at, what should the administrator do?

Question46: SIMULATION
What word is missing from the following SQL statement? update tablename ____ fieldname='value' where id=909;
(Please specify the missing word using lower\_case letters only.)

Question47: SIMULATION
What word is missing from the following SQL statement? insert into tablename ________(909, 'text'); (Please specify the missing word using lower-case letters only.)

Question48: What is not contained in the locale setting of the operating system?

Question49: When the command echo $? outputs 1, which of the following statements are true?

Question50: What is the purpose of the dig command?

Question51: Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

Question52: With syslog, what is a facility?

Question53: Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?

Question54: Which of the following is observed and corrected by a NTP client?

Question55: What is the main difference between the batch and at commands?

Question56: What output will the command seq 10 produce?

Question57: Which of the following programs can be used to determine the routing path to a given destination?

Question58: Which of the following commands can be used to associate open TCP ports with the processes that opened the ports?

Question59: SIMULATION
What is the name of the file that defines the sources (like DNS or local configuration files) and the order in which they are consulted when resolving hostnames? (Specify the full name of the file, including path.)

Question60: What is NTP?

Question61: Which of the following commands are used to manage the environment and shell variables within a shell process? (Choose TWO correct answers.)

Question62: SIMULATION
The presence of what file will temporarily prevent all users except root from logging into the system?
(Specify the full name of the file, including path.)

Question63: SIMULATION
Which command is used to add OpenSSH private keys to a running ssh-agent instance? (Specify the file name only without any path.)

Question64: Which configuration file would be edited to change the default options for outbound SSH sessions?

Question65: Which of the following resources can be directly limited for a given user using ulimit? (Choose THREE correct answers.)

Question66: What is true about the ntpdate command?

Question67: Which of the following files is consulted when programs like netstat try to match port numbers to names?

Question68: Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)

Question69: Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

Question70: Which of the following commands puts the output of the command date into the shell variable mydate?

Question71: Which of the following files assigns a user to its primary group?

Question72: Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?

Question73: What is true regarding public and private SSH keys? (Choose TWO correct answers.)

Question74: What is the purpose of the xhost program?

Question75: Which of the following commands gets the GnuPG public key with the id 63B4835B from the keyserver example.com?

Question76: How is a display manager started?

Question77: Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)

Question78: Which of the following actions prevents a specific user from scheduling tasks using at or batch?

Question79: In order to discover the link layer address of the device that owns a specific IPv4 or IPv6 address, which mechanism is used?

Question80: What is true regarding the statement beginning with #! that is found in the first line of a script?

Question81: Which of the following are valid IPv4 network masks? (Choose TWO correct answers.)

Question82: Which of the following commands prints the exit value of the most recently executed program in Bash?

Question83: Which of the following are operators used for comparisons by the test command? (Choose TWO correct answers.)

Question84: Which of the following files holds the configuration for journald when running systemd?

Question85: SIMULATION
Which command is used to manually assign an IP address to a network interface? (Specify ONLY the command without any path or parameters.)

Question86: How many bits make up an IPv6 address?

Question87: SIMULATION
By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)

Question88: Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?

Question89: What is true about groups in a Linux system? (Choose TWO correct answers.)

Question90: Which configuration file does sudo read when determining if a user is permitted to run applications with root privileges?

Question91: Depending on the host's configuration, which of the following files can be used to turn on and off network services running on a host? (Choose TWO correct answers.)

Question92: Which of the following is a valid IPv6 address?

Question93: Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)

Question94: SIMULATION
Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)

Question95: SIMULATION
What is the name of the simple graphical login manager that comes with a vanilla X11 installation?
(Specify ONLY the command without any path or parameters.)

Question96: Given the following routing table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.178.1 0.0.0.0 UG 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 192.168.1.1 255.255.255.0 U 0 0 0 eth0
192.168.178.0 0.0.0.0 255.255.255.0 U 9 0 0 wlan0
How would an outgoing packet to the destination 192.168.2.150 be handled?

Question97: What is true regarding the time in a Linux system?

Question98: Which command makes the shell variable named VARIABLE visible to subshells?

Question99: What is the purpose of the sticky keys feature in X?

Question100: SIMULATION
With X11 forwarding in ssh, what environment variable is automatically set in the remote host shell that is not set when X11 forwarding is not enabled? (Specify only the environment variable without any additional commands or values.)

Question101: When trying to unmount a device it is reported as being busy. Which of the following commands could be used to determine which process is causing this?

Question102: How does the ping command work by default?

Question103: Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

Question104: SIMULATION
Given the following line from /etc/nsswitch.conf:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
By default, which file will be queried first for hostname lookups? (Specify the full name of the file, including path.)